<?php

class DefaultController extends Controller
{
	public function actionIndex()
	{

		if(isset($_GET['ajax'])) {
			echo json_encode(array(
					'success' => true,
					'data' => array(
							'name' => 'name',
							'phone' => '22222222'
					)
			));
			Yii::app()->end();
		}

		//print_r(Yii::app()->controller->module);exit;
		$this->render('index');
	}


}